package cn.bdqn.witcity.mapper;

import cn.bdqn.witcity.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<Product> getAllProduct();
    Product findProductById(@Param("id") Integer id);
    int updateStock(Product product);
    int addProduct(Product product);

}
